STEP 8: Let's finish up our dragon-generating loop. We want them to move around the stage!

  • In , drag in Set x Speed indented INSIDE your loop.
  • Change the variable name in front of .set_x_speed() from sprite to dragon.
  • Drag in Set y Speed indented INSIDE your loop.
  • Change the variable name in front of .set_y_speed() from sprite to dragon.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)